package com.yuanyefu.helloworld;

import org.springframework.beans.factory.FactoryBean;

/**
 * Created by Administrator on 2017/9/16 0016.
 */
public class PiFactoryBean implements FactoryBean {
    public Object getObject() throws Exception {
        return new Double(3.1415926538979);
    }

    public Class<?> getObjectType() {
        return Double.class;
    }

    public boolean isSingleton() {
        return true;
    }
}
